package com.example.demo;
import com.example.demo.spi.Compresser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.ServiceLoader;


@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		ServiceLoader<Compresser> compressers = ServiceLoader.load(Compresser.class);
		for (Compresser compresser : compressers) {
			System.out.println(compresser.getClass());
		}

	}
}
